﻿using UnityEngine;
using System.Collections;

public class BlockCollision : MonoBehaviour {

	// Use this for initialization
	void Start () 
	{

	}
	
	// Update is called once per frame
	void Update () 
	{
	
	}

	void OnCollisionEnter2D(Collision2D collision)
	{
		GameObject gameObj =  collision.gameObject;
		if(gameObj.tag == "Player")
		{
			WorldCreator.Instance.endLevel();
		}
	}

}
